<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<%
    String error = (String) request.getAttribute(FormAuthenticationFilter.DEFAULT_ERROR_KEY_ATTRIBUTE_NAME);

%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <%@ include file="/common/res.jsp" %>
    <link rel="stylesheet"  href="${ctx}/static/css/login.css">
    <title>登录</title>
</head>
<body id="body-login">
<div class="entry">
    <div class="entry-header">
        <div class="entry-logo">
            <h1>
              <%--  <a  href="#" title="MH">
                    <img src="${ctx}/resources/images/logo/logo-big.png" style="width:350px;" alt="">
                </a>--%>
            </h1>
        </div>
    </div>
    <div class="entry-body">
        <div class="entry-body-inner">
            <div class="row">
                <div class="col-md-8 col-lg-8">

                </div>
                <div class="col-md-4 col-lg-4">
					<h3 style="font-size:42px;color:#fff;text-align: center;">AACAR-OP管理系统</h3>
                    <form class="form-signin" id="form-signin" role="form" action="${ctx}/login" method="post">
                        <h5 class="form-signin-heading">登录</h5>

                        <div id="login-error-msg">
                            <%
                                if (error != null) {
                            %>
                            <%  out.print("登录失败，请重试.");  %>

                            <%
                                }
                            %>
                        </div>
                        <input type="text" class="form-control" name="username" placeholder="用户名" required autofocus   >
                        <input type="password" class="form-control" name="password" placeholder="密码" required >
                        <shiro:user>
                            <p class="padding-10">
                                <strong>
                                    <shiro:principal/>
                                </strong>检测到你已经登录，<a href="${ctx }/logout">注销</a> 或者
                                <a href="${ctx }/dashboard#!dashboard">进入系统</a>
                            </p>
                        </shiro:user>
                        <shiro:guest>

                         <%--   <input type="text" name="captcha" class="form-control captcha" autocomplete="off" required  value="123123"
                                   placeholder="输入验证码" style="width:238px;">
                            <img id="captchaImg" title="点击刷新验证码" style="height:40px;width:105px;margin: 0 0 4px 0"/>
--%>

                            <button class="btn  btn-success" id="login-btn" type="submit">登录</button>
                            <p>&nbsp;</p>
                           <%-- <label class="checkbox" for="rememberMe">
                                <input type="checkbox" id="rememberMe" name="rememberMe">保持登录状态
                            </label>--%>
                        </shiro:guest>
                    </form>
                </div>
            </div>  <!--/.row-->
        </div>
    </div>  <!--/.entry-body-->
    <div class="entry-footer">
		
        <p>
            <span>copyright©2018</span>
            <span>版权所有</span>
        </p>
    </div>  <!--/.entry-footer-->
</div>
<script>
</script>
</body>
</html>